package com.qingmu.club.minaapi.plus.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 积分兑换记录表
 * </p>
 *
 * @author duke
 * @since 2019-12-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class OrderInfo extends Model<OrderInfo> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    /**
     * 会员id
     */
    private String userId;

    /**
     * 会员名称
     */
    private String clubUsersName;

    /**
     * 积分商品id
     */
    private String goodsId;

    /**
     * 积分商品名称
     */
    private String goodsName;

    /**
     * 会员手机号
     */
    private String userMobile;

    /**
     * 积分商品宣传图
     */
    private String goodsImage;

    /**
     * 兑换店主id(操作人id)
     */
    private String createUserId;

    /**
     * 兑换店主名称(操作人名称)
     */
    private String createUserName;

    /**
     * 兑换积分数量
     */
    private Integer exchangeNum;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 所属俱乐部id
     */
    private String clubId;

    /**
     * 所属门店id
     */
    private String shopId;

    /**
     * 所属门店名称
     */
    private String shopName;

    /**
     * 兑换状态：0待兑换 1已兑换
     */
    private Integer status;

    /**
     * 商品兑换二维码
     */
    private String converCode;

    /**
     * 魔力拼团运行数据id
     */
    private String runId;

    /**
     * 拼团id
     */
    private String groupId;

    /**
     * 课程id
     */
    private String courseId;

    /**
     * 团长获得折扣
     */
    private Double masterDiscount;

    /**
     * 团长获得积分
     */
    private Integer masterJf;

    /**
     * 团员获得折扣
     */
    private Double memberDiscount;

    /**
     * 团员获得积分
     */
    private Integer memberJf;

    /**
     * 课程价格
     */
    private BigDecimal coursePrice;

    /**
     * 二维码id（未启用）
     */
    private String codeId;

    /**
     * 积分兑换人员id（未启用）
     */
    private String operStaffId;

    /**
     * 积分兑换人员名称（未启用）
     */
    private String operStaffName;


    public static final String ID = "id";

    public static final String USER_ID = "user_id";

    public static final String CLUB_USERS_NAME = "club_users_name";

    public static final String GOODS_ID = "goods_id";

    public static final String GOODS_NAME = "goods_name";

    public static final String USER_MOBILE = "user_mobile";

    public static final String GOODS_IMAGE = "goods_image";

    public static final String CREATE_USER_ID = "create_user_id";

    public static final String CREATE_USER_NAME = "create_user_name";

    public static final String EXCHANGE_NUM = "exchange_num";

    public static final String CREATE_TIME = "create_time";

    public static final String CLUB_ID = "club_id";

    public static final String SHOP_ID = "shop_id";

    public static final String SHOP_NAME = "shop_name";

    public static final String STATUS = "status";

    public static final String CONVER_CODE = "conver_code";

    public static final String RUN_ID = "run_id";

    public static final String GROUP_ID = "group_id";

    public static final String COURSE_ID = "course_id";

    public static final String MASTER_DISCOUNT = "master_discount";

    public static final String MASTER_JF = "master_jf";

    public static final String MEMBER_DISCOUNT = "member_discount";

    public static final String MEMBER_JF = "member_jf";

    public static final String COURSE_PRICE = "course_price";

    public static final String CODE_ID = "code_id";

    public static final String OPER_STAFF_ID = "oper_staff_id";

    public static final String OPER_STAFF_NAME = "oper_staff_name";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
